<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #app {
        width: 100px;
        height: 100px;
        border: 10px solid red;
        padding: 20px;
        margin: 30px;
      }
    </style>
    <script src="../jquery.min.js"></script>
    <script>
      $(function () {
        console.log('第1组width/height：', $('#app').width(), $('#app').height())
        console.log(
          '第2组innerWidth/innerHeight：',
          $('#app').innerWidth(),
          $('#app').innerHeight()
        )
        console.log(
          '第3组outerWidth/outerHeight：',
          $('#app').outerWidth(),
          $('#app').outerHeight()
        )
        console.log(
          '第4组outerWidth(true)/outerHeight(true)：',
          $('#app').outerWidth(true),
          $('#app').outerHeight(true)
        )
      })
    </script>
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>
